<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.PostcheckSource"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.PostCheckDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
	
PostCheckDao postcheckDao = DaoCreator.createPostCheckDao();
List<PostcheckSource> sourceList = postcheckDao.getPostcheckSourceList();

Long thePostcheckSourceID = 0L;
String IDStr = (String)request.getParameter(Constants.REQUEST_PARAMETER_POSTCHECK_SOURCE_ID);
try{
	thePostcheckSourceID = Long.parseLong(IDStr);
}catch(Exception e){
	
}

%>
<select id="postcheckSource" onchange="selectPostcheckSource();" style="width:470px;">
<%
for (PostcheckSource source: sourceList) {
%>
	<option value="<%=source.getId()%>" <%=thePostcheckSourceID.equals(source.getId())? "selected":""%>><%=source.getName()%></option>
<%
}
%>
</select>
<%
}
%>